![]() |
PATH![]() |
![]() ![]() |
Obtains the rectangle that contains a button.
pascal OSStatus GetThemeButtonBackgroundBounds (
const Rect *inBounds,
ThemeButtonKind inKind,
const ThemeButtonDrawInfo *inDrawInfo,
Rect *outBounds);
Appearance adornments can extend beyond the basic bounding rectangle of a button and may be of variable shape. Your application may call the GetThemeButtonBackgroundBounds function to obtain the actual rectangle containing the pixels belonging to a button under the current theme.